package com.event.management.backend.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 操作日志表
 * @TableName operation_logs
 */
@TableName(value ="operation_logs")
@Data
public class OperationLogs implements Serializable {
    /**
     * 日志ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 操作用户ID
     */
    @TableField(value = "operator_id")
    private Integer operatorId;

    /**
     * 操作类型（如 add, update, delete 等）
    */
    @TableField(value = "action_type")
    private String actionType;

    /**
     * 目标类型（如 book, user 等）
     */
    @TableField(value = "target_type")
    private String targetType;

    /**
     * 目标记录ID
     */
    @TableField(value = "target_id")
    private Integer targetId;

    /**
     * 操作描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 操作时间
     */
    @TableField(value = "operation_time")
    private Date operationTime;

    /**
     * 操作IP地址
     */
    @TableField(value = "ip_address")
    private String ipAddress;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

   
}